package com.zb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;

/**
 * @ClassName TbAlarmModel
 * @Description 模型对象
 * @Author xm
 * @Date 2025/03/26 11:23
 **/
@Data
    @EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("tb_alarm")
@ApiModel(value = "TbAlarmModel", description = "")
public class TbAlarmModel implements Serializable{

private static final long serialVersionUID=1L;

        @ApiModelProperty(value = "id")
                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;

        @ApiModelProperty(value = "报警名称")
        private String name;

        @ApiModelProperty(value = "指标id")
        private Integer quotaId;

        @ApiModelProperty(value = "运算符")
        private String operator;

        @ApiModelProperty(value = "报警阈值")
        private Integer threshold;

        @ApiModelProperty(value = "报警级别  1一般 2严重")
        private Integer level;

        @ApiModelProperty(value = "沉默周期（分钟）")
        private Integer cycle;

        @ApiModelProperty(value = "web钩子")
        private String webhook;


        }
